<script setup lang="ts">
import { reactive,toRef } from 'vue'

const man = reactive({
	name: '张三',
	age: 18,
	sex: '男'
})

const age = toRef(man,'age')
console.log(age.value)
</script>

<template>
  <div>
	<!-- age:{{ age }} -->
	age
  </div>
</template>

<style scoped>
div {
  margin: 0 auto;
  text-align: center;
}
</style>
